package com.sardine.base.esm.binding;

import com.sardine.base.esm.session.Configuration;
import com.sardine.base.esm.session.EsmSession;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.lang.reflect.Method;

/**
 * 上海京东到家元信信息技术有限公司<br>
 * Created with IntelliJ IDEA.
 * Date:2017/7/11
 * Time:14:51
 * 接口方法映射对象
 * @author daifeng<br>
 *         daifeng@imdada.cn
 * @since JDK 1.7 <br>
 * Copyright (c) 2017 imdada System Incorporated All Rights Reserved.
 */
public class EsmMapperMethod {
    private static final Logger logger = LoggerFactory.getLogger(EsmMapperMethod.class);

    private final EsmCommand command;
    private final MethodSignature method;
    public EsmMapperMethod(Class<?> annotationInterface, Method method, Configuration configuration) {
        this.command = new EsmCommand(configuration, annotationInterface, method);
        this.method = new MethodSignature(configuration, method);
    }



    public Object execute(EsmSession sqlSession, Object[] args) {
        Object result =null;
        return result;
    }

    public static class EsmCommand {

        public EsmCommand(Configuration configuration, Class<?> annotationInterface, Method method) {

        }
    }
    public static class MethodSignature {

        public MethodSignature(Configuration configuration, Method method) {

        }
    }
}
